#include "Stack.h"

Stack_element STACK[MAX_STACK_SIZE];   // Array   
int Stack_Top = -1;  

void push(Stack_element item)
{
	if(Stack_Top >= MAX_STACK_SIZE-1)
	{
		printf("The stack is full.\n");
		return;
	}
	STACK[++Stack_Top] = item;
}

Stack_element pop(void)
{
	if(Stack_Top <= -1)
	{
		printf("The stack is empty. Return_Value is 0(zero).\n");
		return;
	}
	return STACK[Stack_Top--];
}
